def avg(one, *two):
    return (one + sum(two)) / (1 + len(two))


def a(**kwargs):
    pass


import html


def make_element(name, value, **attrs):
    keyvals = [' %s=%s ' % item for item in attrs.items()]
    attr_str = ''.join(keyvals)
    element = '<{name}{attrs}>{value}></{name}>'.format(
        name=name,
        attrs=attr_str,
        value=html.escape(value)
    )
    return element


m = make_element('item', 'Albatross', size='large', quantity=6)
print(m)
